﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Actuals.CoreDomain.Business;
using Actuals.CoreDomain;
using Actuals.CoreDomain.Data;
using Actuals.Data;

namespace Actuals.Business
{
    public class BusinessProject : IBusinessProject
    {
          private IDalProject _dalProject;

          public BusinessProject(IDalProject dalProject)
        {
            _dalProject = dalProject;
        }

         public BusinessProject()
        {
            _dalProject = new DalProject();
        }




         #region IBusinessProject Members

         public IProject GetProject(int projectId)
         {
             return _dalProject.GetProject(projectId);
         }

        public List<IProject> GetProjects()
        {
            return _dalProject.GetProjects();
        }

        #endregion


        public bool AddProject(IProject project)
        {
            return _dalProject.AddProject(project);
        }

        public bool UpdateProject(IProject project)
        {
            return _dalProject.UpdateProject(project);
        }

        public bool DeleteProject(int projectId)
        {
            return _dalProject.DeleteProject(projectId);
        }


      
    }
}
